package com.wedimob.scrapper.parser;

import com.wedimob.scrapper.data.Content;

/**
 * html parser.
 * 
 * @author melouadi
 * 
 */
public class HTMLParser extends Parser<HTMLDocument> {

	@Override
	public final HTMLDocument parseContent(final Content content) {
		return new HTMLDocument(content);
	}

	@Override
	public final boolean accept(final Content content) {
		return (content.getError() == null)
				&& ("html".equals(content.getType().toString().toLowerCase()));
	}

}
